/**
 * Copyright (C), 2018-2022, 融联网络有限公司
 * FileName: Signal
 * Author:   666
 * Date:     2022/1/15 16:14
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.enumdemo;/**
 * @Classname Signal
 * @Description TODO
 * @Date 2022/1/15 16:14
 * @Created by 666
 */

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author 666
 * @create 2022/1/15
 * @since 1.0.0
 */
public enum Signal {
    GREEN,YELLOW,RED;
    public static void main(String[] args) {
        for(int i = 0;i < Signal.values().length;i++) {
            System.out.println("枚举成员："+Signal.values()[i]+",索引："+Signal.values()[i].ordinal());
        }
    }
}
